package com.guoxin.chapter3.join.joinexception;

/**
 * @author guoxin
 * @date 2019年8月23日
 */
public class ThreadB extends Thread {
	
	public ThreadB() {
		setName("B");
	}
	
	@Override
	public void run() {
		 try {
			ThreadA a = new ThreadA();
			 a.start();
			 a.join();
			 System.out.println("线程B在run end处打印了");
		} catch (InterruptedException e) {
			e.printStackTrace();
			System.out.println("线程B在 catch 处打印了");
		}
	}
}
